﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.DataAccess.SPI
{
    /// <summary>
    /// 通用结果对象
    /// </summary>
    [Serializable]
    public class CommonResultObject
    {
        /// <summary>
        /// 当前记录
        /// </summary>
        public TRecord Record { get; set; }

        /// <summary>
        /// 当前记录列表
        /// </summary>
        public List<TRecord> RecordList { get; set; }

        /// <summary>
        /// 当前记录标识
        /// </summary>
        public string RecordId { get; set; }

        /// <summary>
        /// 增量变更集
        /// </summary>
        public Dictionary<string, object> ChangeSet { get; set; }

        /// <summary>
        /// 返回记录列表
        /// </summary>
        public List<TRecord> RetRecordList { get; set; }

        public CommonResultObject()
        {

        }

        public CommonResultObject(List<DataTable> dataTables)
        {
            //TODO ORM 转换
        }
    }
}
